package newapp.dob.com.dc_new_app.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;

import butterknife.ButterKnife;
import newapp.dob.com.dc_new_app.R;
import newapp.dob.com.dc_new_app.api.bean.OrderListModel;

/**
 * Created by Administrator on 2016/10/17 0017.
 */

public class HomeSecAdapter extends ItemAdapter<OrderListModel, HomeSecAdapter.OrderListViewHolder> {


    private Context context;
    private String title = "支付宝";
    private boolean isFirst = true;

    public HomeSecAdapter(Context context) {
        super(context);
        this.context = context;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public OrderListViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new OrderListViewHolder(inflate(R.layout.item_home_sec_order, parent));
    }

    @Override
    public void onBindViewHolder(OrderListViewHolder holder, int position) {
//        PayWayModel.DataBean item = getItem(position);

    }

    public interface OnCheckListener {
        void onClick(String way, String pay_id, String payment_description, String title);
    }

    private OnCheckListener onCheckListener;

    public void setShareClickListener(OnCheckListener onCheckListener) {
        this.onCheckListener = onCheckListener;
    }

    class OrderListViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {


        private OrderListViewHolder(View itemView) {
            super(itemView);
            ButterKnife.bind(this, itemView);
        }

        @Override
        public void onClick(View v) {

        }
    }
}
